// 导入需要的api
import { getSwiperList } from '../api/api'

export async function getSwiper(dispatch) {
  const { data: res } = await getSwiperList()
  if (res.status !== 0) {
    return
  }
  dispatch({ type: 'GET_SWIPER', payload: res.message })
}
